﻿using AutoMapper;
using YMJF_Service.Helpers;
using YMJF_Service.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using System.Web.Routing;
using xrwang.weixin.PublicAccount;

namespace YMJF_Service
{
    /// <summary>
    /// 全局应用
    /// </summary>
    public class WebApiApplication : System.Web.HttpApplication
    {
        /// <summary>
        /// 应用启动
        /// </summary>
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            GlobalConfiguration.Configure(WebApiConfig.Register);
            // Mvc 配置
            RouteTable.Routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
            RouteTable.Routes.MapRoute(
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "FluentCaptcha", action = "FluentCaptcha", id = UrlParameter.Optional }
           );

           
        }

    }
}
